package com.htstar.ovms.device.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.htstar.ovms.device.api.vo.AlarmUserNameTestVO;
import com.htstar.ovms.device.api.vo.AlarmUserNameVO;
import com.htstar.ovms.device.mapper.DeviceAlarmViolationMapper;
import com.htstar.ovms.device.service.DeviceAlarmViolationService;
import org.springframework.stereotype.Service;
import com.htstar.ovms.device.api.entity.DeviceAlarmViolation;

import java.util.List;

/**
 * 
 *
 * @author htxk
 * @date 2021-02-23 09:15:31
 */
@Service
public class DeviceAlarmViolationServiceImpl extends ServiceImpl<DeviceAlarmViolationMapper, DeviceAlarmViolation> implements DeviceAlarmViolationService {

    /**
     * JInZhu
     * 查找该车触发警报的行驶人员---条件根据车辆有效申请单找在行驶车辆
     * @param licCode
     * @return
     */
    @Override
    public AlarmUserNameVO getAlarmUserName(String licCode){

        return baseMapper.getAlarmUserName(licCode);
    }

    /**
     * 测试获取历史违规警报
     */
    @Override
    public List<AlarmUserNameTestVO> test(){
        return  baseMapper.test();
    }
}
